package cn.hchaojie.camp.day01;

public class Binary {
	public static void main(String[] args) {
		int i = 2;
		// 二进制表示
		int b = 0b10;					// 1 * 2(1) + 0 * 2(0)
		int c = 12345;				// 1 * 10(4) + 2 * 10(3) + 3 * 10(2) + 4*10(1) + 5
		int d = 0b10101;			// 1 * 2(4) + 1 * 2(2) + 1
		System.out.println(i);
		System.out.println(b);
		System.out.println(d);
	}
}
